// const getWuhanBuildinds = async () => {
//   const response = await fetch('http://localhost:8081/WUHAN_BUILDING');
//   const data = await response.json();
//   return data;
// };

// const getWuhanRoads = async () => {
//   const response = await fetch(' http://localhost:8081/WUHAN_ROADS');
//   const data = await response.json();
//   return data;
// };

import axios from 'axios';

const getWuhanBuildinds = () => {
  return axios.get('http://localhost:8081/WUHAN_BUILDING');
};

const getWuhanRoads = () => {
  return axios.get(' http://localhost:8081/WUHAN_ROADS');
};

const getWuhanEvents = () => {
  return axios.get(' http://localhost:8081/WUHAN_EVENTS');
};

const getWuhanBridge = () => {
  return axios.get(' http://localhost:8081/WUHAN_BRIDGE');
};

export { getWuhanBuildinds, getWuhanRoads, getWuhanEvents, getWuhanBridge };
